package cn.project.lemontree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Notice_Per implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer user_id;
    private Integer role;
    private String container;
    private Integer isread;
    private String create_time;

    public Notice_Per(Notice notice,Integer user_id,Integer role){
        this.container = notice.getContainer();
        this.create_time = notice.getCreate_time();
        isread = 0;
        this.user_id = user_id;
        this.role = role;
    }
}
